package com.derbysoft.lowcostadapter.commons.redis.service;

import com.derbysoft.lowcostadapter.commons.model.RateCache;
import com.derbysoft.lowcostadapter.commons.redis.service.impl.HSetEntity;

import java.util.List;

public interface RateCacheService {

    RateCache load(String key, String ratePlan, String roomType);

    List<RateCache> loadAll(String key);

    void remove(RateCache rateCache);

    void remove(String key, String ratePlan, String roomType);

    void removeAll(String key);

    void saveAll(List<RateCache> rateCaches);

    void saveHSetEntities(List<HSetEntity> hSetEntities);
}
